<?php
	$arr_localhost = array('localhost', '127.0.0.1');
	if (!in_array($_SERVER['HTTP_HOST'],$arr_localhost)) $host = "http://www.clasesonline.com.ar/sai/";
	else $host = "http://localhost/cov/sai/";

	$arr_var = explode(',', $_POST['variables']);
	$id = $arr_var[0];
	$nombre = $arr_var[1];
	if (count($arr_var)<3) {
?>
<strong><?php echo $nombre ?></strong>
<a class="button" href="<?php echo $host .'groups/read/'. $id; ?>">Ver perfil</a>
<a class="button" href="<?php echo $host .'calendar/read/'. $id; ?>">Ver calendario</a>
<a class="button" href="<?php echo $host .'plans/read/'. $id; ?>">Ver plan de estudio</a>
<a class="button" href="<?php echo $host .'groups/update/'. $id; ?>">Editar informacion</a>
<a class="button" href="<?php echo $host .'groups/update-students/'. $id; ?>">+/- alumnos</a>
<a class="button" href="<?php echo $host .'workshop/read/'. $id; ?>">Ver tareas</a>
<a class="button" href="<?php echo $host .'messages/send/group/'. $id; ?>">Enviar mensaje</a>
<a class="button" href="<?php echo $host .'groups/delete/'. $id; ?>">Eliminar</a>
<?php } else { $email = $arr_var[2]; ?>
<strong><?php echo $nombre.'('.$email.')'; ?></strong>
<a class="button" href="<?php echo $host .'students/read/'. $id; ?>">Ver perfil</a>
<?php } ?>